﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Administrador.aspx.cs"
    Inherits="PerfilEmpreendedor.FrontEnd.Administrador" %>

<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<%@ Register Src="UserControls/CadastrarCartela.ascx" TagName="Cartelas" TagPrefix="uc" %>
<%@ Register Src="UserControls/CadastrarPartida.ascx" TagName="Partidas" TagPrefix="uc" %>
<%@ Register Src="UserControls/CadastrarUsuario.ascx" TagName="Usuarios" TagPrefix="uc" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="Css/Estilos.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <ext:ResourceManager ID="ResourceManager1" runat="server">
    </ext:ResourceManager>
    <ext:Panel ID="Panel1" runat="server" Title="Perfil Empreendedor - Módulo Administrador">
        <TopBar>
            <ext:Toolbar>
                <Items>
                    <ext:Button ID="Button1" runat="server" Text="Partidas" Icon="TableMultiple" Scale="Medium">
                        <DirectEvents>
                            <Click OnEvent="AbrirFormPartidas" />
                        </DirectEvents>
                    </ext:Button>
                    <ext:Button ID="Button2" runat="server" Text="Cartelas" Icon="LayoutHeader" Scale="Medium">
                        <DirectEvents>
                            <Click OnEvent="AbrirFormCartelas" />
                        </DirectEvents>
                    </ext:Button>
                    <ext:Button ID="Button3" runat="server" Text="Usuários" Icon="User" Scale="Medium">
                        <DirectEvents>
                            <Click OnEvent="AbrirFormUsuarios" />
                        </DirectEvents>
                    </ext:Button>
                    <ext:Button ID="Button6" runat="server" Text="Ranking Top 20" Icon=StarGold Scale="Medium">
                        <Menu>
                            <ext:Menu>
                                <Items>
                                    <ext:GridPanel ID="gridRanking" runat="server" Height="300" AutoScroll=true>
                                        <Store>
                                            <ext:Store ID="storeRanking">
                                                <Reader>
                                                    <ext:JsonReader IDProperty="Id">
                                                        <Fields>
                                                            <ext:RecordField Name="Jogador" />
                                                            <ext:RecordField Name="Pontuacao" />
                                                        </Fields>
                                                    </ext:JsonReader>
                                                </Reader>
                                            </ext:Store>
                                        </Store>
                                        <ColumnModel>
                                            <Columns>
                                                <ext:Column Header="Jogador" Width="140" DataIndex="Jogador" />
                                                <ext:Column Header="Pontuacão" Width="100" DataIndex="Pontuacao" />
                                            </Columns>
                                        </ColumnModel>
                                    </ext:GridPanel>
                                </Items>
                            </ext:Menu>
                        </Menu>
                    </ext:Button>
                    <ext:Button ID="Button5" runat="server" Text="Redefinir o sistema" Icon="DatabaseDelete"
                        Scale="Medium">
                        <DirectEvents>
                            <Click OnEvent="Resetar">
                                <Confirmation ConfirmRequest="true" Message="Tem certeza que deseja redefinir o sistema?" />
                                <EventMask Msg="Aguarde..." ShowMask="true" />
                            </Click>
                        </DirectEvents>
                    </ext:Button>
                    <ext:Button ID="Button4" runat="server" Text="Sair" Icon="DoorOut" NavigateUrl="Login.aspx"
                        Scale="Medium" />
                </Items>
            </ext:Toolbar>
        </TopBar>
        <Items>
        </Items>
    </ext:Panel>
    <img src="Images/Splash.png" id="splash" />
    <uc:Partidas ID="formPartidas" runat="server"></uc:Partidas>
    <uc:Cartelas ID="formCartelas" runat="server" />
    <uc:Usuarios ID="formUsuarios" runat="server" />
    </form>
</body>
</html>
